home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / Object / title.c < prev    next >
C/C++ Source or Header  |  1995-06-12  |  4KB  |  116 lines

  1. /* title.c generated from title.psw
  2.    by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
  3.  */
  4.  
  5. #include <dpsclient/dpsfriends.h>
  6. #include <string.h>
  7.  
  8. #line 1 "title.psw"
  9. #line 10 "title.c"
  10. void PSWTitle(float xscale, float yscale)
  11. {
  12.   typedef struct {
  13.     unsigned char tokenType;
  14.     unsigned char topLevelCount;
  15.     unsigned short nBytes;
  16.  
  17.     DPSBinObjGeneric obj0;
  18.     DPSBinObjReal obj1;
  19.     DPSBinObjReal obj2;
  20.     DPSBinObjGeneric obj3;
  21.     DPSBinObjGeneric obj4;
  22.     DPSBinObjGeneric obj5;
  23.     DPSBinObjGeneric obj6;
  24.     DPSBinObjGeneric obj7;
  25.     DPSBinObjGeneric obj8;
  26.     DPSBinObjGeneric obj9;
  27.     DPSBinObjGeneric obj10;
  28.     DPSBinObjGeneric obj11;
  29.     DPSBinObjGeneric obj12;
  30.     DPSBinObjGeneric obj13;
  31.     DPSBinObjGeneric obj14;
  32.     DPSBinObjGeneric obj15;
  33.     DPSBinObjGeneric obj16;
  34.     DPSBinObjGeneric obj17;
  35.     DPSBinObjReal obj18;
  36.     DPSBinObjReal obj19;
  37.     DPSBinObjGeneric obj20;
  38.     DPSBinObjGeneric obj21;
  39.     DPSBinObjGeneric obj22;
  40.     DPSBinObjGeneric obj23;
  41.     DPSBinObjGeneric obj24;
  42.     DPSBinObjGeneric obj25;
  43.     DPSBinObjGeneric obj26;
  44.     DPSBinObjGeneric obj27;
  45.     DPSBinObjGeneric obj28;
  46.     DPSBinObjGeneric obj29;
  47.     DPSBinObjGeneric obj30;
  48.     DPSBinObjGeneric obj31;
  49.     DPSBinObjReal obj32;
  50.     DPSBinObjGeneric obj33;
  51.     DPSBinObjGeneric obj34;
  52.     DPSBinObjGeneric obj35;
  53.     DPSBinObjGeneric obj36;
  54.     DPSBinObjGeneric obj37;
  55.     DPSBinObjGeneric obj38;
  56.     char obj39[6];
  57.     char obj40[7];
  58.     } _dpsQ;
  59.   static const _dpsQ _dpsStat = {
  60.     DPS_DEF_TOKENTYPE, 29, 329,
  61.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78},    /* gsave */
  62.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: xscale */
  63.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: yscale */
  64.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 139},    /* scale */
  65.     {DPS_LITERAL|DPS_INT, 0, 0, 108},
  66.     {DPS_LITERAL|DPS_INT, 0, 0, 132},
  67.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173},    /* translate */
  68.     {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 210},    /* Times-Italic */
  69.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 67},    /* findfont */
  70.     {DPS_LITERAL|DPS_INT, 0, 0, 80},
  71.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 140},    /* scalefont */
  72.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 149},    /* setfont */
  73.     {DPS_LITERAL|DPS_NAME, 0, 7, 318},    /* printIt */
  74.     {DPS_EXEC|DPS_ARRAY, 0, 5, 272},
  75.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  76.     {DPS_LITERAL|DPS_INT, 0, 0, 22},
  77.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  78.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173},    /* translate */
  79.     {DPS_LITERAL|DPS_REAL, 0, 0, .98},
  80.     {DPS_LITERAL|DPS_REAL, 0, 0, -.02},
  81.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  82.     {DPS_EXEC|DPS_ARRAY, 0, 5, 232},
  83.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 72},    /* for */
  84.     {DPS_LITERAL|DPS_INT, 0, 0, 2},
  85.     {DPS_LITERAL|DPS_INT, 0, 0, 3},
  86.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 54},    /* div */
  87.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150},    /* setgray */
  88.     {DPS_EXEC|DPS_NAME, 0, 7, 318},    /* printIt */
  89.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77},    /* grestore */
  90.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150},    /* setgray */
  91.     {DPS_EXEC|DPS_NAME, 0, 7, 318},    /* printIt */
  92.     {DPS_LITERAL|DPS_INT, 0, 0, -1},
  93.     {DPS_LITERAL|DPS_REAL, 0, 0, .5},
  94.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173},    /* translate */
  95.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  96.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  97.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107},    /* moveto */
  98.     {DPS_LITERAL|DPS_STRING, 0, 6, 312},
  99.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160},    /* show */
  100.     {'S','U','M',' ','I','T'},
  101.     {'p','r','i','n','t','I','t'},
  102.     }; /* _dpsQ */
  103.   _dpsQ _dpsF;    /* local copy  */
  104.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  105.   char pad[3];
  106.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  107.   _dpsF = _dpsStat;    /* assign automatic variable */
  108.  
  109.   _dpsP[1].val.realVal = xscale;
  110.   _dpsP[2].val.realVal = yscale;
  111.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,329);
  112.   if (0) *pad = 0;    /* quiets compiler warnings */
  113. }
  114. #line 16 "title.psw"
  115.  
  116.